import request from '@/utils/request'

export function list(query) {
    return request({
        url: '/customer/private/list',
        method: 'get',
        params: query
    })
}

export function getArchive(id) {
    return request({
        url: '/system/archive/' + id,
        method: 'get'
    })
}

export function addArchive(data) {
    return request({
        url: '/system/archive',
        method: 'post',
        data: data
    })
}

export function updateArchive(data) {
    return request({
        url: '/system/archive',
        method: 'put',
        data: data
    })
}

export function delArchive(id) {
    return request({
        url: '/system/archive/' + id,
        method: 'delete'
    })
}
